/*----------------------------------------------------------
* FILE: EdCtrlArchivosFenix.java
* LOGICAL NAME: EdCtrlArchivosFenix
* PRODUCT: jsiit-model
*----------------------------------------------------------
* IMPORTANT NOTICE
* This program is property of DAI ( Development Alternatives Inc )
* Its unauthorized use, as any code alteration without authorization 
* is prohibited
*----------------------------------------------------------
* MODIFICATIONS
* DATE 30/11/2009
* AUTHOR nalopez
*----------------------------------------------------------
*/

package sv.gob.mh.dgii.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @author TPAR
 * <b>Created by </b>nalopez
 * <b>for</b>jsiit-model
 * <b>on</b> 30/11/2009 15:29:48
 * <b>Purpose</b> 
 * <p>
 * </p>
 */
@Entity
@Table(name = "ED_CTRL_ARCHIVOS_FENIX", schema = "EDADEPUDOC")
public class EdCtrlArchivosFenix implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 213609972822288341L;
	
	private Long ictrlfenix;
	private TbFtpFenixSrc tbFtpFenixSrc;
	private String snombreFenix;
	private Date fhcarga;
	private String mestado;
	private Integer ncantFxt;

	/**
	 * 
	 */
	public EdCtrlArchivosFenix() {
	}
	
	public EdCtrlArchivosFenix(Long ictrlfenix) {
		this.ictrlfenix = ictrlfenix;
	}
	
	public EdCtrlArchivosFenix(Long ictrlfenix, TbFtpFenixSrc tbFtpFenixSrc,
			String snombreFenix, Date fhcarga, String mestado, Integer ncantFxt) {
		this.ictrlfenix = ictrlfenix;
		this.tbFtpFenixSrc = tbFtpFenixSrc;
		this.snombreFenix = snombreFenix;
		this.fhcarga = fhcarga;
		this.mestado = mestado;
		this.ncantFxt = ncantFxt;
	}

	@Id
	@Column(name = "I_CTRLFENIX", unique = true, nullable = false, insertable = true, updatable = true, precision = 18, scale = 0)
	public Long getIctrlfenix() {
		return ictrlfenix;
	}

	public void setIctrlfenix(Long ictrlfenix) {
		this.ictrlfenix = ictrlfenix;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "C_FENIX_SRC", nullable = true)
	public TbFtpFenixSrc getTbFtpFenixSrc() {
		return tbFtpFenixSrc;
	}

	public void setTbFtpFenixSrc(TbFtpFenixSrc tbFtpFenixSrc) {
		this.tbFtpFenixSrc = tbFtpFenixSrc;
	}

	@Column(name = "S_NOMBREFENIX", nullable = true, length = 100)
	public String getSnombreFenix() {
		return snombreFenix;
	}

	public void setSnombreFenix(String snombreFenix) {
		this.snombreFenix = snombreFenix;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_CARGA", unique = false, nullable = false, insertable = true, updatable = true, length = 7)
	public Date getFhcarga() {
		return fhcarga;
	}

	public void setFhcarga(Date fhcarga) {
		this.fhcarga = fhcarga;
	}

	@Column(name = "M_ESTADO", nullable = true, length = 1)
	public String getMestado() {
		return mestado;
	}

	public void setMestado(String mestado) {
		this.mestado = mestado;
	}

	@Column(name = "N_CANT_FXT", unique = false, nullable = true, insertable = true, updatable = true, precision = 18, scale = 0)
	public Integer getNcantFxt() {
		return ncantFxt;
	}

	public void setNcantFxt(Integer ncantFxt) {
		this.ncantFxt = ncantFxt;
	}

}
